package com.acane.instagram.controller;

import com.acane.instagram.pojo.Result;
import com.acane.instagram.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tag")
public class TagController {

    @Autowired
    private TagService tagService;

    @GetMapping("/get/list")
    public Result getTagList() {
        return Result.success(tagService.list());
    }
}
